import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * @author gao
 * @date 2025/8/11 16:53
 */

public class Demo4 {
    public static void main(String[] args) {
        try (Writer writer = new FileWriter("./test.txt")) {
            writer.write("你好世界");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}